package auth2x

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"` // gitee:"user_info projects pull_requests issues notes keys hook groups gists enterprises emails"
	CreatedAt    int    `json:"created_at"`
}
type TokenReq struct {
	GrantType    string `json:"grant_type"`
	Code         string `json:"code"`
	ClientId     int    `json:"client_id"`
	RedirectUri  string `json:"redirect_uri"`
	ClientSecret string `json:"client_secret"`
}

//
//{
//    "access_token": "f17a384cf6dec03a457b2a78c2398945",
//    "token_type": "bearer",
//    "expires_in": 86400,
//    "refresh_token": "0295bc8eac813c8b0a8d2ec8f39103c2950d1ad2efd87764b11a1c396c98b6fd",
//    "scope": "projects user_info issues notes",
//    "created_at": 1719051725
//}
